package GUI;

import java.awt.*;

import javax.swing.*;
/**
 * This class creates instance of ParformanceReportGui	
 * to display when needed
 * @author Aviat
 *
 */
public class ParformanceReportGui extends JPanel {
	
	private static final long serialVersionUID = 1L;
	private JTextField appDay;
	private JTextField MedianA;
	private JTextField DeviationA;
	private JButton btnCancel;
	private JTextField addDay;
	private JTextField MedianB;
	private JTextField DeviationB;
	
	/**
	 *  the constructor
	 */
	public ParformanceReportGui(){
		super();
		appDay = new JTextField();
		MedianA = new JTextField();
		DeviationA = new JTextField();
		addDay = new JTextField();
		MedianB = new JTextField();
		DeviationB = new JTextField();
		btnCancel = new JButton("Cancel"); 
		initiate();
	
}
	/**
	 * This method initializes the ParformanceReportGui
	 */
	public void initiate(){
		JLabel lbl = new JLabel("Parformance Report");
		lbl.setForeground(Color.BLUE);
		lbl.setFont(new Font("Arial Black", Font.BOLD, 17));
		lbl.setBounds(160, 21, 247, 50);
		add(lbl);
		
		JLabel lblNum = new JLabel("Number of approved extention days:");
		lblNum.setFont(new Font("Arial", Font.BOLD, 13));
		lblNum.setBounds(23, 78, 237, 50);
		add(lblNum);
		
		appDay.setBounds(276, 90, 114, 29);
		add(appDay);
		appDay.setColumns(10);
		
		
		JLabel lblMedian = new JLabel("Median:");
		lblMedian.setFont(new Font("Arial", Font.BOLD, 13));
		lblMedian.setBounds(23, 124, 81, 60);
		add(lblMedian);
		
		MedianA.setBounds(276, 141, 114, 29);
		add(MedianA);
		MedianA.setColumns(10);
	
		JLabel lblDeviation = new JLabel("Standard deviation:");
		lblDeviation.setFont(new Font("Arial", Font.BOLD, 13));
		lblDeviation.setBounds(23, 178, 168, 60);
		add(lblDeviation);
		
		DeviationA.setBounds(276, 195, 114, 29);
		add(DeviationA);
		DeviationA.setColumns(10);
		
		setLayout(null);
		setSize(new Dimension(500, 496));
		
		btnCancel.setFont(new Font("Arial", Font.BOLD, 12));
		btnCancel.setBounds(23, 449, 114, 36);
		add(btnCancel);
		
		JLabel label = new JLabel("Number of additional days:");
		label.setFont(new Font("Arial", Font.BOLD, 13));
		label.setBounds(23, 261, 237, 50);
		add(label);
		
		JLabel label_1 = new JLabel("Median:");
		label_1.setFont(new Font("Arial", Font.BOLD, 13));
		label_1.setBounds(23, 306, 81, 60);
		add(label_1);
		
		JLabel label_2 = new JLabel("Standard deviation:");
		label_2.setFont(new Font("Arial", Font.BOLD, 13));
		label_2.setBounds(23, 353, 168, 60);
		add(label_2);
		
		addDay.setColumns(10);
		addDay.setBounds(276, 277, 114, 29);
		add(addDay);
		
		MedianB.setColumns(10);
		MedianB.setBounds(276, 327, 114, 29);
		add(MedianB);
		
		DeviationB.setColumns(10);
		DeviationB.setBounds(276, 374, 114, 29);
		add(DeviationB);
	}
	/**
	 * 
	 * @return JTextField with the approval day of extension 
	 */
	public JTextField getTextField_appDay(){
		return appDay;
	}
	/**
	 * 
	 * @return JTextField with the Median of approval day of extension
	 */
	public JTextField getTextField_MedianA() {	
		return MedianA;
	}
	/**
	 * 
	 * @return JTextField with the standard deviation of approval day of extension
	 */
	public JTextField getTextField_DeviationA() {	
		return DeviationA;
	}
	/**
	 * 
	 * @return JTextField with the additional days of repeat stages
	 */
	public JTextField getTextField_addDay(){
		return addDay;
	}
	/**
	 * 
	 * @return JTextField with the Median of additional days of repeat stages
	 */
	public JTextField getTextField_MedianB() {	
		return MedianB;
	}
	/**
	 * 
	 * @return JTextField with the standard deviation of additional days of repeat stages
	 */
	public JTextField getTextField_DeviationB() {	
		return DeviationB;
	}
	/**
	 * 
	 * @return the cancel button
	 */
	public JButton getCanButt(){
		return btnCancel;
	}

	/**
	 * 
	 * @param appDay to set the approval day of extension
	 */
	public void setAppDay(JTextField appDay) {
		this.appDay = appDay;
	}

	/**
	 * 
	 * @param medianA to set the Median of approval day of extension
	 */
	public void setMedianA(JTextField medianA) {
		MedianA = medianA;
	}

	/**
	 * 
	 * @param deviationA to set the standard deviation of approval day of extension 
	 */
	public void setDeviationA(JTextField deviationA) {
		DeviationA = deviationA;
	}

	/**
	 * 
	 * @param btnCancel to set cancel button
	 */
	public void setBtnCancel(JButton btnCancel) {
		this.btnCancel = btnCancel;
	}
	
	/**
	 * 
	 * @param addDay to set the additional days of repeat stages
	 */
	public void setAddDay(JTextField addDay) {
		this.addDay = addDay;
	}

	/**
	 * 
	 * @param medianB to set the Median of additional days of repeat stages
	 */
	public void setMedianB(JTextField medianB) {
		MedianB = medianB;
	}
	/**
	 * 
	 * @param deviationB to set the standard deviation of additional days of repeat stages
	 */
	public void setDeviationB(JTextField deviationB) {
		DeviationB = deviationB;
	}

}




